import {} from 'react'
import { useRoutes } from "react-router-dom";
import Provider from '@/store';
import routes from "@/router";
import './App.css';
import 'antd/dist/antd.css';

function App() {
    const element = useRoutes(routes);
    // const {state, dispatch} = useContext(Context);
    // console.log(state, dispatch);

    
    return (
        <Provider>
            {element}
        </Provider>
    );
}

export default App;
